<?php

namespace App\Exceptions;

use App\Helpers\ApiCode;
use Exception;

/**
 * 自定义异常基类
 * Class BaseException
 *
 * @author  LL
 * @package App\Exceptions
 */
class BaseException extends Exception {
    public function __construct(array $codeResponse, $info = null) {
        [$code, $message] = $codeResponse;
        parent::__construct($info ?: $message, $code, null);
    }
}
